<template>
  <div>
    我是App组件
  </div>
  <Son :house="house" @getGift="getGift" />
  {{ gifts + msgs }}
  <Son />
</template>
<script setup lang="ts">
import Son from "./components/Son.vue"
import { ref } from "vue";

const house = ref("你好")
const gifts = ref("")
const msgs = ref("")

const getGift = (gift: string, msg: string) => {
  gifts.value = gift
  msgs.value = msg
}
</script>

<style scoped></style>
